package com.bean;

import java.sql.Timestamp;



/**
 * DrawMoneyRequestRecord entity. @author MyEclipse Persistence Tools
 */

public class DrawMoneyRequestRecord  implements java.io.Serializable {


	// Fields    

	private Long id;
	private SysUser sysUser;//后台操作员
	private ParkManager parkManager;//用户人
	private Double amount;//申请提款金额
	private String accountBalance;//申请汇款到的银行账户
	private String realName;//银行账户的真实姓名
	private String comment;//处理留言
	private Timestamp reqTime;//请求时间
	private Timestamp processTime;//处理时间
	private Short status;//状态（-1：未汇款；1：未处理；2：处理中；3：已汇款）
	private String statusName;

	// Constructors

	/** default constructor */
	public DrawMoneyRequestRecord() {
	}

	/** minimal constructor */
	public DrawMoneyRequestRecord(Double amount, String accountBalance, String realName, Timestamp reqTime, Short status) {
		this.amount = amount;
		this.accountBalance = accountBalance;
		this.realName = realName;
		this.reqTime = reqTime;
		this.status = status;
	}

	/** full constructor */
	public DrawMoneyRequestRecord(ParkManager parkManager, Double amount, String accountBalance, String realName, String comment, Timestamp reqTime, Timestamp processTime, Short status) {
		this.parkManager = parkManager;
		this.amount = amount;
		this.accountBalance = accountBalance;
		this.realName = realName;
		this.comment = comment;
		this.reqTime = reqTime;
		this.processTime = processTime;
		this.status = status;
	}


	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public ParkManager getParkManager() {
		return this.parkManager;
	}

	public void setParkManager(ParkManager parkManager) {
		this.parkManager = parkManager;
	}

	public Double getAmount() {
		return this.amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}

	public String getAccountBalance() {
		return this.accountBalance;
	}

	public void setAccountBalance(String accountBalance) {
		this.accountBalance = accountBalance;
	}

	public String getRealName() {
		return this.realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public Timestamp getReqTime() {
		return this.reqTime;
	}

	public void setReqTime(Timestamp reqTime) {
		this.reqTime = reqTime;
	}

	public Timestamp getProcessTime() {
		return this.processTime;
	}

	public void setProcessTime(Timestamp processTime) {
		this.processTime = processTime;
	}

	public Short getStatus() {
		return this.status;
	}

	public void setStatus(Short status) {
		this.status = status;
		//状态（-1：拒绝汇款；1：未处理；2：处理中；3：已汇款）
		switch(status){
		case -1:
			this.setStatusName("拒绝");
			break;
		case 1:
			this.setStatusName("未处理");
			break;
		case 2:
			this.setStatusName("处理中");
			break;
		case 3:
			this.setStatusName("已汇款");
			break;
		default:
			this.setStatusName("未知");
		}
	}

	public String getStatusName() {
		return statusName;
	}

	public void setStatusName(String statusName) {
		this.statusName = statusName;
	}

	public SysUser getSysUser() {
		return sysUser;
	}

	public void setSysUser(SysUser sysUser) {
		this.sysUser = sysUser;
	}

}